<template>
	<div class="content">
		<header-com :title="title" moduleName="matchs"></header-com> 
		<div class="tab-box">
			<div class="tab">
				<router-link to="/match/detail/matchSchedule" tag='a' active-class="active-tab">战表</router-link>
			</div>
			<div class="tab">
				<router-link to="/match/detail/MatchDetailGoing" tag='a' active-class="active-tab">进行中</router-link>
			</div>
			<div class="tab">
				
				<router-link to="/match/detail/MatchDetailEnd" tag='a' active-class="active-tab">已结束</router-link>
			</div>
			<div class="tab">
				<router-link to="/match/detail/MatchDetailNoGoing" tag='a' active-class="active-tab">未开始</router-link>
			</div>
			<div class="tab">
				<router-link to="/match/detail/signForm" tag='a' active-class="active-tab">签表</router-link>
			</div>
			
		</div>
		<div class="child">
			<router-view></router-view>
		</div>
	</div>
</template>

<script>
	export default {
		components: {

		},
		data() {
			return {
				com_id: this.$route.query.id,
				title: localStorage.getItem("name"),
			};
		},
	}
</script>
<style lang="less" scoped>
	.tab-box {
		position: fixed;
		top: 0.9rem !important;
		left: 0;
		right: 0;
		width: 100%;
		height: 0.8rem;
		background: #42B574;
		box-shadow: 0 0.03rem 0.06rem #999;
		display: flex;
		justify-content: space-around;
		font-size: 0.30rem;
		line-height: 0.8rem;
		font-weight: 600;
		color: #C7E9D6;
		z-index: 1000;
	}

	.tab {
		flex: 1;
		height: 0.8rem;
		position: relative;

		a {
			color: #fff;
			display: inline-block;
			width: 100%;
			text-align: center;
		}

		position: relative
	}

	.active-tab::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		color: #fff;
		height: 0.72rem;
		border-bottom: 0.08rem solid #259B25;
	}

	/*.battle{box-shadow: 0 0.04rem 0.1rem 0.03rem #e6e6e6;}*/

	.match-detail {
		margin-bottom: 1.1rem;
	}

	.tabs {
		position: fixed;
		top: 45px;
		z-index: 9999;
		width: 100%;
	}
</style>
